<?php
/**
 * Created by JetBrains PhpStorm.
 * User: FUHU
 * Date: 9/28/13
 * Time: 10:04 AM
 * To change this template use File | Settings | File Templates.
 */

return array(
    'view_manager' => array(
        'template_path_stack' => array(
            __DIR__.'/../view',
        ),
    ),
    'router' => array(
        'routes' => array(
            'hello' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/hello[/:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Helloworld\Controller\Helloworld',
                        'action'     => 'index',
                    ),
                ),

            ),
        ),
    ),
    'controllers' => array(
        'invokables' => array(
            'Helloworld\Controller\Helloworld' => 'Helloworld\Controller\HelloworldController',
        ),
    ),

);